import ActionTypes from "../action";

export default {
  [ActionTypes.REPAIR_QUESTION]: [
    {
      label: "问题图片",
      prop: "pictureUrl",
      solt: true,
      image: true,
      width: 200,
    },
    {
      label: "问题描述",
      prop: "description",
      overHidden: true,
    },
    {
      label: "问题类型",
      prop: "questionType",
    },
    // {
    //   label: '是否上架',
    //   prop: 'isPutAway',
    //   formatter(_, value) {
    //     return value ? '是' : '否'
    //   }
    // }
  ],
  [ActionTypes.MAINTAIN_ORDER]: [
    {
      label: "订单编号",
      prop: "orderId",
      overHidden: true,
    },
    {
      label: "用户名称",
      prop: "contact",
      overHidden: true,
    },
    {
      label: "用户电话",
      prop: "mobile",
      overHidden: true,
    },
    {
      label: "员工姓名",
      prop: "staffName",
      overHidden: true,
    },
    {
      label: "订单状态",
      prop: "orderStatus",
      solt: true,
    },
    {
      label: "问题类型",
      prop: "questionType",
      overHidden: true,
    },
    {
      label: "下单时间",
      prop: "gmtCreated",
      format: "yyyy-MM-dd hh:mm:ss",
    },
    {
      label: "服务时间",
      prop: "designateTime",
      format: "yyyy-MM-dd hh:mm:ss",
    },
  ],
};
